#include<stdio.h>
int main()
{
	int a,b,n,day;
	scanf("%d",&n);
	if(0==n%3)
	{
		day=(n/3)*2;
	}
	else
	{
		day=(n/3)*2+1;
	}
	printf("%d",day);
	return 0;
}
